package com.ebb;


public class EBBUser {
    static private EBBUser _instance = null;
    private String userName;
    private String nickName;
    private String createddate;
    private String lastmoddate;
    
    public String getUserName() {
        return userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    public String getNickName() {
        return nickName;
    }
    
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    
    public String getCreateddate() {
        return createddate;
    }

    public void setCreateddate(String createddate) {
        this.createddate = createddate;
    }

    public String getLastmoddate() {
        return lastmoddate;
    }

    public void setLastmoddate(String lastmoddate) {
        this.lastmoddate = lastmoddate;
    }

    static public synchronized EBBUser getInstance() {
        if( _instance == null) {
            synchronized(EBBUser.class) {
                if (_instance == null) {
                    _instance = new EBBUser();
                }
            }
        }
        return _instance;
     }
    
    public void logout() {
        this.setCreateddate(null);
        this.setLastmoddate(null);
        this.setUserName(null);
        this.setNickName(null);
    }
}
